<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
 * PHP version 5
 *
 * This source file is subject to version 2.1 of the GNU Lesser General Public
 * License, that is bundled with this package in the file COPYING, available
 * through the world wide web at the following URI:
 * http://www.gnu.org/copyleft/lesser.html.
 *
 * @package    ZNF
 * @author     Alessandro Rossini <http://www.alessandrorossini.org>
 * @author     Graziano Liberati <http://www.liberati.org>
 * @copyright  2004-2007 The ZNF Development Team
 * @license    LGPL License 2.1 <http://www.gnu.org/copyleft/lesser.html>
 * @version    SVN $Id: index.php 43 2007-06-26 23:36:35Z aronnax $
 * @since      Release 0.5.0
 * @link       http://www.zeronotice.org
 */

require_once('ZNF/ZNF.php');

try {
    $znf = new ZNF();
    $znf->process();
}
catch (ZNF_Config_AppConfigException $e) {
    if (ZNF::DEBUG) {
        echo '<b>' . $e->getMessage() . '</b><br/><code>' . $e->getTraceAsString() . '</code>';
    } else {
        echo '<b>' . $e->getMessage() . '</b>';
    }
}
catch (ZNF_Config_ModulesConfigException $e) {
    if (ZNF::DEBUG) {
        echo '<b>' . $e->getMessage() . '</b><br/><code>' . $e->getTraceAsString() . '</code>';
    } else {
        echo '<b>' . $e->getMessage() . '</b>';
    }
}
catch (Exception $e) {
    if (ZNF::DEBUG) {
        echo '<b>' . $e->getMessage() . '</b><br/><code>' . $e->getTraceAsString() . '</code>';
    } else {
        echo '<b>' . $e->getMessage() . '</b>';
    }
}

?>
